package com.Java.train.business.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import springfox.documentation.spring.web.json.Json;

/**
 * <p>
 * 确认订单
 * </p>
 *
 * @author luomoxingchen
 * @since 2024-10-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("confirm_order")
@ApiModel(value = "ConfirmOrder对象", description = "确认订单")
@ToString
public class ConfirmOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("会员id")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("日期")
    @TableField("date")
    private Date date;

    @ApiModelProperty("车次编号")
    @TableField("train_code")
    private String trainCode;

    @ApiModelProperty("出发站")
    @TableField("start")
    private String start;

    @ApiModelProperty("到达站")
    @TableField("end")
    private String end;

    @ApiModelProperty("余票ID")
    @TableField("daily_train_ticket_id")
    private Long dailyTrainTicketId;

    @ApiModelProperty("车票")
    @TableField("tickets")
    private String tickets;

    @ApiModelProperty("订单状态|枚举[ConfirmOrderStatusEnum]")
    @TableField("status")
    private String status;

    @ApiModelProperty("新增时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
